package org.example.dao;

import lombok.experimental.Delegate;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.example.model.Attraction;

import java.util.List;

public interface AttractionDao {
    List<Attraction> getAttractions(@Param("Attraction") Attraction attraction);

    Attraction getAttractionById(int id);

    List<String> getDisplayImage();


    List<Attraction> findAll(Attraction attraction);

    @Delete("delete from attraction where id = #{id}")
    void deleteById(int id);

    void save(Attraction attraction);

    String searchByWord(String keyword);
}
